//
//  OrderCancelCell.m
//  PigMarket
//
//  Created by 张敬 on 2019/9/11.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "OrderCancelCell.h"

@implementation OrderCancelCell

- (void)setupUI{
    
    [self addSubview:self.titleLab];
    [self addSubview:self.icon];
}

- (void)setupLayout{
    
    self.height = 52;
    
    {
        _icon.size = CGSizeMake(22, 22);
        _icon.mj_x = 15;
        _icon.mj_y = 15;
        
    }
    
    {
        _titleLab.size = CGSizeMake(KScreenWidth - 100, 18);
        _titleLab.mj_x = _icon.right + 15;
        _titleLab.mj_y = (self.height - _titleLab.height)/2.0;
    }
}

#pragma mark - setter methods


#pragma mark - getter methods

- (UILabel *)titleLab{
    
    if (!_titleLab) {
        _titleLab = [UILabel makeLabelWithText:@"" textColor:UIColorFromRGB(0x363636) font:mFont(16) textAliment:0];
    }
    return _titleLab;
}


- (UIImageView *)icon{
    
    if (!_icon) {
        _icon = [UIImageView makeImageByImageName:@"meat_cart_unchecked" cornerRadius:0];
    }
    return _icon;
}

@end

